import { createApp } from 'vue';
import App from './App.vue';
import Antd from 'ant-design-vue';
import 'ant-design-vue/dist/antd.css';

// 导入pinia状态管理store
import { createPinia } from 'pinia';

// 导入路由router
import router from '@/router/index.js';
// 引入导航守卫
import "@/router/premit.js"

createApp(App).
    // 挂载路由
    use(router).
    // 挂载ant-design UI
    use(Antd).
    use(createPinia()).
    mount('#app')
